from selenium.webdriver.common.by import By
from autoTest_ecshop.base_page.base import BasePage


class ShopPage(BasePage):
    # 搜索框定位器
    input_search_loc = (By.XPATH, '//*[@name="keywords"]')
    # 搜索按钮定位器
    btn_search_loc = (By.XPATH,'//*[@class="go"]')
    # 搜索到的第一个商品定位器
    btn_product_loc = (By.XPATH,'//*[@class="goodsItem"]/a[1]')
    # 加入购物车按钮定位器
    btn_shopCar_loc = (By.XPATH,'//*[@src="themes/default/images/bnt_cat.gif"]')
    # 购物车第一个商品的删除链接定位器
    delProduct_loc = (By.XPATH,'//tr/td[@align="center"][2]/a[1]')

